package com.db.daoImpl;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.db.entity.User;
import com.db.utility.BaseDaoImpl;

@Repository
@Transactional
public class UserDaoImpl extends BaseDaoImpl<User> {
	
	@Override
	public User findByName(String name) {
		
		return (User) super.gethTemplate().find("from User where username=?",name).get(0);
	}
	
}
